#!/usr/bin/lua
local json = require("cjson")
package.path = "/web/muggle/Api/package/?.lua"
local word = require("public/word")

crash = {}

function crash:push(msg)
    -- body
    local result = {
        code = -1,
        mess = ngx.escape_uri("您的请求未成功"),
        datetime = os.time(),
        data = {
            code = -1,
            mess = ngx.escape_uri(msg),
        }
    }
    return json.encode(result)
end
return crash
